package appctl

import (
	"blog/dao"
	"github.com/labstack/echo/v4"
	"github.com/zxysilent/utils"
)

func GetTopicTree(ctx echo.Context) error {
	topicTree := dao.TopicDao.TopicTree()
	return ctx.JSON(utils.Succ("succ", topicTree))
}
